package cn.yanghan.org.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
@ApiModel(value = "部门字段")
public class Department {
    /*主键*/
    private Long id;
    /*部门编号*/
    private String sn;
    /*部门名称*/
    private String name;
    /*暂时不用*/
    private String dirPath;
    /*部门状态 0 正常 ，-1 停用*/
    @ApiModelProperty(value = "状态 0:启用 -1:禁用")
    private int state;

    private Long manager_id;
    private Employee employee;

    private Long Parent_id;
    private Department parent;
    /*部门经理 和员工关联*/
    //private String manager;
    /*上级部门
    private Department parent;
    private List<Department> children = new ArrayList<>();
*/
    private List<Department> children = new ArrayList<>();
}
